Cocktail Help Reference
AddSampleData Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > ISampleDataProvider<T> Interface : AddSampleData Method



manager
The EntityManager that needs to be populated with the sample data.

Glossary Item Box

This method is called by the EntityManagerProvider to initialize the EntityManager cache with sample data. Use EntityManager.AttachEntities or EntityManager.CacheStateManager.RestoreCacheState() to populate the cache with sample data. The latter is useful to popluate the EntityManager with previously saved data.

Syntax

Visual Basic (Declaration) 
Sub AddSampleData( _
   ByVal manager As T _
) 
Visual Basic (Usage)Copy Code
Dim instance As ISampleDataProvider(Of T)
Dim manager As T
 
instance.AddSampleData(manager)
C# 
void AddSampleData( 
   T manager
)
C++/CLI 
void AddSampleData( 
   T^ manager
) 

Parameters

manager
The EntityManager that needs to be populated with the sample data.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.